<include file="Admin@Public/header" /> 
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
  <input type="hidden" id="web-url" value="__URL__"/>
  <ol class="breadcrumb">
    <li>开发模式</li>
    <li>前台菜单</li>
    <li class="active">列表</li>
  </ol>
 <div class="table-responsive">
 <form  class="form-horizontal" id="form-listorder" role="form">      
 <table class="table">
      <thead>
        <tr>
          <th class="col-md-1">序号</th>
          <th class="col-md-1">#</th>
          <th class="col-md-2">菜单</th>
          <th class="col-md-2">E-菜单</th>
          <th class="col-md-2">打开方式</th>
          <th class="col-md-1">状态</th>
          <th class="col-md-3">操作</th>
        </tr>
      </thead>
    <tbody>
<volist name="list" id="vo" key="num">
      <tr>
        <td><input type="hidden" name="ids[]" value="{$vo.id}">
            <input type="text" size="3" name="listorders[]" value="{$vo.listorder}" class="input-listorder" />
        </td>
        <td><input type="checkbox" name="checkbox_id" value="{$vo.id}"></td>
        <td><span style="padding-left:<?php echo ($vo["sort"]*20); ?>px">{$vo.html}{$vo.name}</span></td>
        <td>{$vo.ename}</td>
        <td>
           <switch name="vo.target"> 
            <case value="_self"> 默认</case>
            <case value="_blank">新窗口</case>
            <default />
          </switch>
        </td>
        <td><notempty name="vo.status"><i class="icon-unlock"></i> 显示 <else/><i class="icon-lock"></i> 隐藏</notempty></td>
        <td> 
           <a class="btn btn-default btn-xs" href="__URL__/edit?id={$vo.id}"><i class="icon-edit"></i></a>
    <notempty name="vo.status">
      <a class="btn btn-warning btn-xs" href="javascript:checkDialog('__URL__/changeStatus?id={$vo.id}&status=0','确定设置为隐藏？')"><i class="icon-lock"></i></a>
    <else/>
      <a class="btn btn-success btn-xs" href="javascript:checkDialog('__URL__/changeStatus?id={$vo.id}&status=1','确定设置为显示？')"><i class="icon-unlock"></i></a>
    </notempty>
            <a class="btn btn-danger btn-xs" href="javascript:checkDialog('__URL__/delete?id={$vo.id}','确定选择删除？')"><i class="icon-trash"></i></a>
            <a class="btn btn-info btn-xs" href="__URL__/add?parentid={$vo.id}"><i class="icon-plus"></i></a>
          </td>
        </tr>
  </volist>  
      </tbody>
      <tfoot>
        <tr class="info">
         <include file="opreat"/>
        </tr>
      </tfoot> 
    </table>
  </form>  
</div>
       
     
</div>

<include file="Admin@Public/script_list" />
<include file="Admin@Public/footer" />
   
